package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    //接口一：菜系营收占比分析
    List<Map<String, Object>> dishValueCash();
    //接口二：套餐营收占比分析
    List<Map<String, Object>> setmealValueCash();
    //接口三：菜系销量占比分析
    List<Map<String, Object>> dishNum();
    //接口四：套餐销量占比分析
    List<Map<String, Object>> setmealNum();
    //接口五：月营业额趋势图
    List<Map<String, Object>> cashPerMonth(int i);

}
